'''
Created on 18/10/2012

@author: Barrios - Correa - Felippone
'''

class MlgExtendedException(Exception):
    
    def __init__(self, description,detail,innerException): 
        self.desc = description
        self.detail = detail
        self.innerExc = innerException
        
    def __str__(self):
        return repr("Description: " + self.value +".\nDetail: "+self.detail)
    
class MlgMsgExc(Exception):
    
    def __init__(self, value,detail): 
        self.value = value
        self.detail = detail
        
    def __str__(self):
        return repr("Msg: " + self.value +".\nDetail: "+self.detail)